package day05.ti.BaoZhuang;

public class Student {
    private String name;
    private int age;
    private double sg;
    private boolean hy;
    private char xb;

    public Student() {
    }

    public Student(String name, int age, double sg, boolean hy, char xb) {
        this.name = name;
        this.age = age;
        this.sg = sg;
        this.hy = hy;
        this.xb = xb;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public double getSg() {
        return sg;
    }

    public void setSg(double sg) {
        this.sg = sg;
    }

    public boolean isHy() {
        return hy;
    }

    public void setHy(boolean hy) {
        this.hy = hy;
    }

    public char getXb() {
        return xb;
    }

    public void setXb(char xb) {
        this.xb = xb;
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", sg=" + sg +
                ", hy=" + hy +
                ", xb=" + xb +
                '}';
    }
}
